package xyz.gzdxc.common.mysql.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.util.Date;

@Table("xh_cm_captcha")
public class CaptchaEntity implements Serializable {
    @Id
    private Long id;

    @Column("code")
    private String code;

    @Column("base_code")
    private String baseCode;

    @Column("session")
    private String session;

    @Column("create_time")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getBaseCode() {
        return baseCode;
    }

    public void setBaseCode(String baseCode) {
        this.baseCode = baseCode;
    }

    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CaptchaEntity{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", baseCode='" + baseCode + '\'' +
                ", session='" + session + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
